//
//  UIScreen+Extension.swift
//  SmartEyeForPatient
//
//  Created by QDSG on 2021/4/6.
//

import Foundation
import UIKit

extension UIScreen {
    static let screenWidth: CGFloat = UIScreen.main.bounds.width
    static let screenHeight: CGFloat = UIScreen.main.bounds.height
    
    static var navigationBarMaxY: CGFloat {
        isSpecialScreen ? 88 : 64
    }
    
    static var statusBarHeight: CGFloat {
        isSpecialScreen ? 44 : 20
    }
    
    static var bottomSafeHeight: CGFloat {
        isSpecialScreen ? 34 : 0
    }
    
    static let isSpecialScreen: Bool = screenHeight >= 812
    
}
